home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 97 / CD-ROM 97 / CD-ROM 97.iso / internet / ghostzilla / ghsetup.exe / chrome / comm.jar / content / editor / EdInsertChars.js < prev    next >
Encoding:
JavaScript  |  2002-04-09  |  14.2 KB  |  585 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Baki Bon <bakibon@yahoo.com>   (original author)
  22.  */
  23.  
  24. //------------------------------------------------------------------
  25. // From Unicode 3.0 Page 54. 3.11 Conjoining Jamo Behavior
  26. var SBase = 0xac00;
  27. var LBase = 0x1100;
  28. var VBase = 0x1161;
  29. var TBase = 0x11A7;
  30. var LCount = 19;
  31. var VCount = 21;
  32. var TCount = 28;
  33. var NCount = VCount * TCount;
  34. // End of Unicode 3.0
  35.  
  36. // dialog initialization code
  37. function Startup()
  38. {
  39.   if (!InitEditorShell())
  40.     return;
  41.  
  42.   StartupLatin();
  43.  
  44.   // Dialog is non-modal:
  45.   // Change button text: "Ok" to "Insert"; "Cancel" to "Close"
  46.   var insertButton = document.documentElement.getButton("accept");
  47.   if (insertButton)
  48.     insertButton.setAttribute("label", GetString("Insert"));
  49.  
  50.   var cancelButton = document.getElementById("insertCharsDlg").getButton("cancel");
  51.   if (cancelButton)
  52.     cancelButton.setAttribute("label", GetString("Close"));
  53.  
  54.   // Set a variable on the opener window so we
  55.   //  can track ownership of close this window with it
  56.   window.opener.InsertCharWindow = window;
  57.   window.sizeToContent();
  58.  
  59.   SetWindowLocation();
  60. }
  61.  
  62. function onAccept()
  63. {
  64.   // Insert the character
  65.   // Note: Assiated parent window and editorShell
  66.   //  will be changed to whatever editor window has the focus
  67.   window.editorShell.InsertSource(LatinChar);
  68.  
  69.   // Set persistent attributes to save
  70.   //  which category, letter, and character modifier was used
  71.   CategoryGroup.setAttribute("category", category);
  72.   CategoryGroup.setAttribute("letter_index", indexL);
  73.   CategoryGroup.setAttribute("char_index", indexM);
  74.   
  75.   // Don't close the dialog
  76.   return false;
  77. }
  78.  
  79. // Don't allow inserting in HTML Source Mode
  80. function onFocus()
  81. {
  82.   var enable = true;
  83.   if ("gEditorDisplayMode" in window.opener)
  84.     enable = !window.opener.IsInHTMLSourceMode();
  85.  
  86.   SetElementEnabled(document.documentElement.getButton("accept"), enable);
  87. }
  88.  
  89. function onClose()
  90. {
  91.   window.opener.InsertCharWindow = null;
  92.   SaveWindowLocation();
  93.   return true;
  94. }
  95.  
  96. //------------------------------------------------------------------
  97. var LatinL;
  98. var LatinM;
  99. var LatinL_Label;
  100. var LatinM_Label;
  101. var LatinChar;
  102. var indexL=0;
  103. var indexM=0;
  104. var indexM_AU=0;
  105. var indexM_AL=0;
  106. var indexM_U=0;
  107. var indexM_L=0;
  108. var indexM_S=0;
  109. var LItems=0;
  110. var category;
  111. var CategoryGroup;
  112. var initialize = true;
  113.  
  114. function StartupLatin()
  115. {
  116.  
  117.   LatinL = document.getElementById("LatinL");
  118.   LatinM = document.getElementById("LatinM");
  119.   LatinL_Label = document.getElementById("LatinL_Label");
  120.   LatinM_Label = document.getElementById("LatinM_Label");
  121.  
  122.   var Symbol      = document.getElementById("Symbol");
  123.   var AccentUpper = document.getElementById("AccentUpper");
  124.   var AccentLower = document.getElementById("AccentLower");
  125.   var Upper       = document.getElementById("Upper");
  126.   var Lower       = document.getElementById("Lower");
  127.   CategoryGroup   = document.getElementById("CatGrp");
  128.  
  129.   // Initialize which radio button is set from persistent attribute...
  130.   var category = CategoryGroup.getAttribute("category");
  131.  
  132.   // ...as well as indexes into the letter and character lists
  133.   var index = Number(CategoryGroup.getAttribute("letter_index"));
  134.   if (index && index >= 0)
  135.     indexL = index;
  136.   index = Number(CategoryGroup.getAttribute("char_index"));
  137.   if (index && index >= 0)
  138.     indexM = index;
  139.  
  140.  
  141.   switch (category)
  142.   {
  143.     case "AccentUpper": // Uppercase Diacritical
  144.       CategoryGroup.selectedItem = AccentUpper;
  145.       indexM_AU = indexM;
  146.       break;
  147.     case "AccentLower": // Lowercase Diacritical
  148.       CategoryGroup.selectedItem = AccentLower;
  149.       indexM_AL = indexM;
  150.       break;
  151.     case "Upper": // Uppercase w/o Diacritical
  152.       CategoryGroup.selectedItem = Upper;
  153.       indexM_U = indexM;
  154.       break;
  155.     case "Lower": // Lowercase w/o Diacritical
  156.       CategoryGroup.selectedItem = Lower;
  157.       indexM_L = indexM;
  158.       break;
  159.     default:
  160.       category = "Symbol";
  161.       CategoryGroup.selectedItem = Symbol;
  162.       indexM_S = indexM;
  163.       break;
  164.   }
  165.  
  166.   ChangeCategory(category);
  167.   initialize = false;
  168. }
  169.  
  170. function ChangeCategory(newCategory)
  171. {
  172.   if (category != newCategory || initialize)
  173.   {
  174.     category = newCategory;
  175.     // Note: Must do L before M to set LatinL.selectedIndex
  176.     UpdateLatinL();
  177.     UpdateLatinM();
  178.     UpdateCharacter();
  179.   }
  180. }
  181.  
  182. function SelectLatinLetter()
  183. {
  184.   if(LatinL.selectedIndex != indexL )
  185.   {
  186.     indexL = LatinL.selectedIndex;
  187.     UpdateLatinM();
  188.     UpdateCharacter();
  189.   }
  190. }
  191.  
  192. function SelectLatinModifier()
  193. {
  194.   if(LatinM.selectedIndex != indexM )
  195.   {
  196.     indexM = LatinM.selectedIndex;
  197.     UpdateCharacter();
  198.   }
  199. }
  200. function DisableLatinL(disable)
  201. {
  202.   if (disable) {
  203.     LatinL_Label.setAttribute("disabled", "true");
  204.     LatinL.setAttribute("disabled", "true");
  205.   } else {
  206.     LatinL_Label.removeAttribute("disabled");
  207.     LatinL.removeAttribute("disabled");
  208.   }
  209. }
  210.  
  211. function UpdateLatinL()
  212. {
  213.   ClearMenulist(LatinL);
  214.   if (category == "AccentUpper" || category == "AccentLower")
  215.   {
  216.     DisableLatinL(false);
  217.     var basic;
  218.  
  219.     // Fill the list
  220.     if (category == "AccentUpper")   // Uppercase Diacritical
  221.     {
  222.       for(basic=0; basic < 26; basic++)
  223.         AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic));
  224.     }
  225.     else  // Lowercase Diacritical
  226.     {
  227.       for(basic=0; basic < 26; basic++)
  228.        AppendStringToMenulist(LatinL , String.fromCharCode(0x61 + basic));
  229.     }
  230.     // Set the selected item
  231.     if (indexL > 25)
  232.       indexL = 25;
  233.     LatinL.selectedIndex = indexL;
  234.   }
  235.   else
  236.   {
  237.     // Other categories don't hinge on a "letter"
  238.     DisableLatinL(true);
  239.     // Note: don't change the indexL so it can be used next time
  240.   }
  241. }
  242.  
  243. function UpdateLatinM()
  244. {
  245.   ClearMenulist(LatinM);
  246.   var i, basic;
  247.   switch(category)
  248.   {
  249.     case "AccentUpper": // Uppercase Diacritical
  250.       for(basic=0; basic < upper[indexL].length; basic++)
  251.         AppendStringToMenulist(LatinM ,
  252.              String.fromCharCode(upper[indexL][basic]));
  253.  
  254.       if(indexM_AU < upper[indexL].length)
  255.         indexM = indexM_AU;
  256.       else
  257.         indexM = upper[indexL].length - 1;
  258.       indexM_AU = indexM;
  259.       break;
  260.  
  261.     case "AccentLower": // Lowercase Diacritical
  262.       for(basic=0; basic < lower[indexL].length; basic++)
  263.         AppendStringToMenulist(LatinM ,
  264.              String.fromCharCode(lower[indexL][basic]));
  265.  
  266.       if(indexM_AL < lower[indexL].length)
  267.         indexM = indexM_AL;
  268.       else
  269.         indexM = lower[indexL].length - 1;
  270.       indexM_AL = indexM;
  271.       break;
  272.  
  273.     case "Upper": // Uppercase w/o Diacritical
  274.       for(i=0; i < otherupper.length; i++)
  275.         AppendStringToMenulist(LatinM, String.fromCharCode(otherupper[i]));
  276.  
  277.       if(indexM_U < otherupper.length)
  278.         indexM = indexM_U;
  279.       else
  280.         indexM = otherupper.length - 1;
  281.       indexM_U = indexM;
  282.       break;
  283.  
  284.     case "Lower": // Lowercase w/o Diacritical
  285.       for(i=0; i < otherlower.length; i++)
  286.         AppendStringToMenulist(LatinM , String.fromCharCode(otherlower[i]));
  287.  
  288.       if(indexM_L < otherlower.length)
  289.         indexM = indexM_L;
  290.       else
  291.         indexM = otherlower.length - 1;
  292.       indexM_L = indexM;
  293.       break;
  294.  
  295.     case "Symbol": // Symbol
  296.       for(i=0; i < symbol.length; i++)
  297.         AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i]));
  298.  
  299.       if(indexM_S < symbol.length)
  300.         indexM = indexM_S;
  301.       else
  302.         indexM = symbol.length - 1;
  303.       indexM_S = indexM;
  304.       break;
  305.   }
  306.   LatinM.selectedIndex = indexM;
  307. }
  308.  
  309. function UpdateCharacter()
  310. {
  311.   indexM = LatinM.selectedIndex;
  312.  
  313.   switch(category)
  314.   {
  315.     case "AccentUpper": // Uppercase Diacritical
  316.       LatinChar = String.fromCharCode(upper[indexL][indexM]);
  317.       indexM_AU = indexM;
  318.       break;
  319.     case "AccentLower": // Lowercase Diacritical
  320.       LatinChar = String.fromCharCode(lower[indexL][indexM]);
  321.       indexM_AL = indexM;
  322.       break;
  323.     case "Upper": // Uppercase w/o Diacritical
  324.       LatinChar = String.fromCharCode(otherupper[indexM]);
  325.       indexM_U = indexM;
  326.       break;
  327.     case "Lower": // Lowercase w/o Diacritical
  328.       LatinChar = String.fromCharCode(otherlower[indexM]);
  329.       indexM_L = indexM;
  330.       break;
  331.     case "Symbol":
  332.       LatinChar =  String.fromCharCode(symbol[indexM]);
  333.       indexM_S = indexM;
  334.       break;
  335.   }
  336. //dump("Letter Index="+indexL+", Character Index="+indexM+", Character = "+LatinChar+"\n");
  337. }
  338.  
  339. var upper=[
  340. [ // A
  341.   0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5,
  342.   0x0100, 0x0102, 0x0104, 0x01cd, 0x01de, 0x01de, 0x01e0, 0x01fa,
  343.   0x0200, 0x0202, 0x0226,
  344.   0x1e00, 0x1ea0, 0x1ea2, 0x1ea4, 0x1ea6, 0x1ea8, 0x1eaa, 0x1eac,
  345.   0x1eae, 0x1eb0, 0x1eb2, 0x1eb4, 0x1eb6
  346. ], [ // B
  347.   0x0181, 0x0182, 0x0184,
  348.   0x1e02, 0x1e04, 0x1e06
  349. ], [ // C
  350.   0x00c7, 0x0106, 0x0108, 0x010a, 0x010c,
  351.   0x0187,
  352.   0x1e08
  353. ], [ // D
  354.   0x010e, 0x0110,
  355.   0x0189,
  356.   0x018a,
  357.   0x1e0a, 0x1e0c, 0x1e0e, 0x1e10, 0x1e12
  358. ], [ // E
  359.   0x00C8, 0x00C9, 0x00CA, 0x00CB,
  360.   0x0112, 0x0114, 0x0116, 0x0118, 0x011A,
  361.   0x0204, 0x0206, 0x0228,
  362.   0x1e14, 0x1e16, 0x1e18, 0x1e1a, 0x1e1c,
  363.   0x1eb8, 0x1eba, 0x1ebc, 0x1ebe, 0x1ec0, 0x1ec2, 0x1ec4, 0x1ec6
  364. ], [ // F
  365.   0x1e1e
  366. ], [ // G
  367.   0x011c, 0x011E, 0x0120, 0x0122,
  368.   0x01e4, 0x01e6, 0x01f4,
  369.   0x1e20
  370. ], [ // H
  371.   0x0124, 0x0126,
  372.   0x021e,
  373.   0x1e22, 0x1e24, 0x1e26, 0x1e28, 0x1e2a
  374. ], [ // I
  375.   0x00CC, 0x00CD, 0x00CE, 0x00CF,
  376.   0x0128, 0x012a, 0x012C, 0x012e, 0x0130,
  377.   0x0208, 0x020a,
  378.   0x1e2c, 0x1e2e,
  379.   0x1ec8, 0x1eca
  380. ], [ // J
  381.   0x0134,
  382.   0x01f0
  383. ], [ // K
  384.   0x0136,
  385.   0x0198, 0x01e8,
  386.   0x1e30, 0x1e32, 0x1e34
  387. ], [ // L
  388.   0x0139, 0x013B, 0x013D, 0x013F, 0x0141,
  389.   0x1e36, 0x1e38, 0x1e3a, 0x1e3c
  390. ], [ // M
  391.   0x1e3e, 0x1e40, 0x1e42
  392. ], [ // N
  393.   0x00D1,
  394.   0x0143, 0x0145, 0x0147, 0x014A,
  395.   0x01F8,
  396.   0x1e44, 0x1e46, 0x1e48, 0x1e4a
  397. ], [ // O
  398.   0x00D2, 0x00D3, 0x00D4, 0x00D5, 0x00D6,
  399.   0x014C, 0x014E, 0x0150,
  400.   0x01ea, 0x01ec,
  401.   0x020c, 0x020e, 0x022A, 0x022C, 0x022E, 0x0230,
  402.   0x1e4c, 0x1e4e, 0x1e50, 0x1e52,
  403.   0x1ecc, 0x1ece, 0x1ed0, 0x1ed2, 0x1ed4, 0x1ed6, 0x1ed8, 0x1eda, 0x1edc, 0x1ede,
  404.   0x1ee0, 0x1ee2
  405. ], [ // P
  406.   0x1e54, 0x1e56
  407. ], [ // Q
  408.   0x0051
  409. ], [ // R
  410.   0x0154, 0x0156, 0x0158,
  411.   0x0210, 0x0212,
  412.   0x1e58, 0x1e5a, 0x1e5c, 0x1e5e
  413. ], [ // S
  414.   0x015A, 0x015C, 0x015E, 0x0160,
  415.   0x0218,
  416.   0x1e60, 0x1e62, 0x1e64, 0x1e66, 0x1e68
  417. ], [ // T
  418.   0x0162, 0x0164, 0x0166,
  419.   0x021A,
  420.   0x1e6a, 0x1e6c, 0x1e6e, 0x1e70
  421. ], [ // U
  422.   0x00D9, 0x00DA, 0x00DB, 0x00DC,
  423.   0x0168, 0x016A, 0x016C, 0x016E, 0x0170, 0x0172,
  424.   0x0214, 0x0216,
  425.   0x1e72, 0x1e74, 0x1e76, 0x1e78, 0x1e7a,
  426.   0x1ee4, 0x1ee6, 0x1ee8, 0x1eea, 0x1eec, 0x1eee, 0x1ef0
  427. ], [ // V
  428.   0x1e7c, 0x1e7e
  429. ], [ // W
  430.   0x0174,
  431.   0x1e80, 0x1e82, 0x1e84, 0x1e86, 0x1e88
  432. ], [ // X
  433.   0x1e8a, 0x1e8c
  434. ], [ // Y
  435.   0x00DD,
  436.   0x0176, 0x0178,
  437.   0x0232,
  438.   0x1e8e,
  439.   0x1ef2, 0x1ef4, 0x1ef6, 0x1ef8
  440. ], [ // Z
  441.   0x0179, 0x017B, 0x017D,
  442.   0x0224,
  443.   0x1e90, 0x1e92, 0x1e94
  444. ] ];
  445. var lower=[
  446. [ // a
  447.   0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5,
  448.   0x0101, 0x0103, 0x0105,
  449.   0x01ce, 0x01df, 0x01e1, 0x01fb,
  450.   0x0201, 0x0203, 0x0227,
  451.   0x1e01, 0x1e9a,
  452.   0x1ea1, 0x1ea3, 0x1ea5, 0x1ea7, 0x1ea9, 0x1eab, 0x1ead, 0x1eaf,
  453.   0x1eb1, 0x1eb3, 0x1eb5, 0x1eb7
  454. ], [ // b
  455.   0x0180, 0x0183, 0x0185,
  456.   0x1e03, 0x1e05, 0x1e07
  457. ], [ // c
  458.   0x00e7,
  459.   0x0107, 0x0109, 0x010b, 0x010d,
  460.   0x0188,
  461.   0x1e09
  462. ], [ // d
  463.   0x010f, 0x0111,
  464.   0x1e0b, 0x1e0d, 0x1e0f, 0x1e11, 0x1e13
  465. ], [ // e
  466.   0x00e8, 0x00e9, 0x00ea, 0x00eb,
  467.   0x0113, 0x0115, 0x0117, 0x0119, 0x011b,
  468.   0x0205, 0x0207, 0x0229,
  469.   0x1e15, 0x1e17, 0x1e19, 0x1e1b, 0x1e1d,
  470.   0x1eb9, 0x1ebb, 0x1ebd, 0x1ebf,
  471.   0x1ec1, 0x1ec3, 0x1ec5, 0x1ec7
  472. ], [ // f
  473.   0x1e1f
  474. ], [ // g
  475.   0x011d, 0x011f, 0x0121, 0x0123,
  476.   0x01e5, 0x01e7, 0x01f5,
  477.   0x1e21
  478. ], [ // h
  479.   0x0125, 0x0127,
  480.   0x021f,
  481.   0x1e23, 0x1e25, 0x1e27, 0x1e29, 0x1e2b, 0x1e96
  482. ], [ // i
  483.   0x00ec, 0x00ed, 0x00ee, 0x00ef,
  484.   0x0129, 0x012b, 0x012d, 0x012f, 0x0131,
  485.   0x01d0,
  486.   0x0209, 0x020b,
  487.   0x1e2d, 0x1e2f,
  488.   0x1ec9, 0x1ecb
  489. ], [ // j
  490.   0x0135,
  491. ], [ // k
  492.   0x0137, 0x0138,
  493.   0x01e9,
  494.   0x1e31, 0x1e33, 0x1e35
  495. ], [ // l
  496.   0x013a, 0x013c, 0x013e, 0x0140, 0x0142,
  497.   0x1e37, 0x1e39, 0x1e3b, 0x1e3d
  498. ], [ // m
  499.   0x1e3f, 0x1e41, 0x1e43
  500. ], [ // n
  501.   0x00f1,
  502.   0x0144, 0x0146, 0x0148, 0x0149, 0x014b,
  503.   0x01f9,
  504.   0x1e45, 0x1e47, 0x1e49, 0x1e4b
  505. ], [ // o
  506.   0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6,
  507.   0x014d, 0x014f, 0x0151,
  508.   0x01d2, 0x01eb, 0x01ed,
  509.   0x020d, 0x020e, 0x022b, 0x22d, 0x022f, 0x0231,
  510.   0x1e4d, 0x1e4f, 0x1e51, 0x1e53,
  511.   0x1ecd, 0x1ecf,
  512.   0x1ed1, 0x1ed3, 0x1ed5, 0x1ed7, 0x1ed9, 0x1edb, 0x1edd, 0x1edf,
  513.   0x1ee1, 0x1ee3
  514. ], [ // p
  515.   0x1e55, 0x1e57
  516. ], [ // q
  517.   0x0071
  518. ], [ // r
  519.   0x0155, 0x0157, 0x0159,
  520.   0x0211, 0x0213,
  521.   0x1e59, 0x1e5b, 0x1e5d, 0x1e5f
  522. ], [ // s
  523.   0x015b, 0x015d, 0x015f, 0x0161,
  524.   0x0219,
  525.   0x1e61, 0x1e63, 0x1e65, 0x1e67, 0x1e69
  526. ], [ // t
  527.   0x0162, 0x0163, 0x0165, 0x0167,
  528.   0x021b,
  529.   0x1e6b, 0x1e6d, 0x1e6f, 0x1e71,
  530.   0x1e97
  531. ], [ // u
  532.   0x00f9, 0x00fa, 0x00fb, 0x00fc,
  533.   0x0169, 0x016b, 0x016d, 0x016f, 0x0171, 0x0173,
  534.   0x01d4, 0x01d6, 0x01d8, 0x01da, 0x01dc,
  535.   0x0215, 0x0217,
  536.   0x1e73, 0x1e75, 0x1e77, 0x1e79, 0x1e7b,
  537.   0x1ee5, 0x1ee7, 0x1ee9, 0x1eeb, 0x1eed, 0x1eef,
  538.   0x1ef1
  539. ], [ // v
  540.   0x1e7d, 0x1e7f
  541. ], [ // w
  542.   0x0175,
  543.   0x1e81, 0x1e83, 0x1e85, 0x1e87, 0x1e89, 0x1e98,
  544. ], [ // x
  545.   0x1e8b, 0x1e8d
  546. ], [ // y
  547.   0x00fd, 0x00ff,
  548.   0x0177,
  549.   0x0233,
  550.   0x1e8f, 0x1e99, 0x1ef3, 0x1ef5, 0x1ef7, 0x1ef9
  551. ], [ // z
  552.   0x017a, 0x017c, 0x017e,
  553.   0x0225,
  554.   0x1e91, 0x1e93, 0x1e95
  555. ] ];
  556.  
  557.  
  558. var symbol = [
  559.         0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x20ac, 0x00a6, 0x00a7,
  560. 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac,         0x00ae, 0x00af,
  561. 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
  562. 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
  563. 0x00d7, 0x00f7
  564. ];
  565.  
  566. var otherupper = [
  567. 0x00c6, 0x00d0, 0x00d8, 0x00de,
  568. 0x0132,
  569. 0x0152,
  570. 0x0186,
  571. 0x01c4, 0x01c5,
  572. 0x01c7, 0x01c8,
  573. 0x01ca, 0x01cb,
  574. 0x01F1, 0x01f2
  575. ];
  576. var otherlower = [
  577. 0x00e6, 0x00f0, 0x00f8, 0x00fe, 0x00df,
  578. 0x0133,
  579. 0x0153,
  580. 0x01c6,
  581. 0x01c9,
  582. 0x01cc,
  583. 0x01f3
  584. ];
  585.